Add more options for cargo test zsh completion
authorThayne McCombs <astrothayne@gmail.com>
Wed, 5 Jul 2017 07:19:58 +0000 (01:19 -0600)
committerThayne McCombs <astrothayne@gmail.com>
Wed, 5 Jul 2017 07:19:58 +0000 (01:19 -0600)
src/etc/_cargo

index 4282994a20a29ba40d9029d0c9527214dffcaa1b..7bb68880b311aa5f5336d82edeb957348c388a11 100644 (file)
@@ -348,6 +348,15 @@ case $state in
                     '(-v, --verbose)'{-v,--verbose}'[use verbose output]' \
                     '--color=:colorization option:(auto always never)' \
                     '1: :_test_names' \
+                    '(--doc --bin --example --test --bench)--lib[only test library]' \
+                    '(--lib --bin --example --test --bench)--doc[only test documentation]' \
+                    '(--lib --doc --example --test --bench)--bin=[binary name]' \
+                    '(--lib --doc --bin --test --bench)--example=[example name]' \
+                    '(--lib --doc --bin --example --bench)--test=[test name]' \
+                    '(--lib --doc --bin --example --test)--bench=[benchmark name]' \
+                    '--message-format:error format:(human json)' \
+                    '--frozen[require lock and cache up to date]' \
+                    '--locked[require lock up to date]'
                     ;;
 
             uninstall)